package com.lagou.dao.impl;

import com.lagou.bean.Resume;
import com.lagou.dao.ResumeDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("resumeDao")
public class ResumeDaoImpl implements ResumeDao {

    @Autowired
    private MongoTemplate mongoTemplate;

    @Override
    public void insertResume(Resume resume) {
        mongoTemplate.insert(resume);
    }

    public Resume findByName(String name) {
        return null;
    }

    @Override
    public List<Resume> findAll() {
        return mongoTemplate.findAll(Resume.class);
    }

    public List<Resume> findListByNameAndExpectSalary(String name, double expectSalary) {
        return null;
    }
}
